package card;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: SEKI TOMOKI
 * Date: 2023-09-26
 * Time: 15:19
 */
public class Test {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        System.out.println("生成一副扑克牌:");
        List<Card> cardList = cardDemo.buyCards();
        System.out.println(cardList);

        System.out.println("洗牌:");
        cardDemo.shuffle(cardList);
        System.out.println(cardList);

        System.out.println("抓牌:");
        List<List<Card>> hands= cardDemo.garbCards(cardList);
        for (List<Card> hand:hands) {
            System.out.println(hand);
        }
        System.out.println("剩余的没有抓的牌:");
        System.out.println(cardList);
    }
}
